/**
 * 所有模块菜单
 *  0-领导
 *  1-品类部长
 *  2-品类课组负责人
 *  3-采购部长
 *  4-采购课组负责人
 *  5-品类经理
 *  6-门店配送
 *  7-销售分析
 *  8-采购经理
 */
export const MENUS = [
  // { category: '销售结构', name: '战略定位', routeName: '', icon: '战略定位', permissions: [], status: 'todo' },
  { category: '销售结构', name: '商品结构', routeName: 'GoodsStructureDesign', icon: '商品结构', permissions: [1], status: '',
    children: [
      { name: '结构设计', routeName: 'GoodsStructureDesign', icon: '', permissions: [], status: '' },
      { name: '结构调整', routeName: 'GoodsStructureAdjustment', icon: '', permissions: [], status: '' },
      { name: '结构分析', routeName: 'GoodsStructureAnalyse', icon: '', permissions: [], status: '' }
    ]
  },
  { category: '销售结构', name: '销售目标', routeName: 'GoodsStructureSaleTarget', icon: '销售目标', permissions: [], status: '' },
  { category: '商品企划', name: '商品管理(定品)', routeName: 'GoodsTrace', icon: '商品管理', permissions: [1, 2, 5], status: '', children: [
    { name: '单品跟踪', routeName: 'GoodsTrace', icon: '', permissions: [], status: '' },
    // { name: '实时销售', routeName: 'GoodsRealtimeSales', icon: '', permissions: [], status: '' },
    { name: '商品档案', routeName: 'GoodsArchives', icon: '', permissions: [], status: '' }]
  },
  { category: '商品企划', name: '企划定量', routeName: 'WeeklyForecast', icon: '企划定量', permissions: [1, 2, 5], status: '',
    children: [
      { name: '周预测', routeName: 'WeeklyForecast', icon: '', permissions: [1, 2, 5], status: '' },
      { name: '采购计划', routeName: 'ProcurementPlan', icon: '', permissions: [1, 5], status: '' },
      { name: '配送计划', routeName: 'DeliveryPlan', icon: '', permissions: [1, 2], status: '' },
      { name: '参数配置', routeName: 'ParameterManage', icon: '', permissions: [1], status: '' },
      { name: '缺断货异常', routeName: 'LackGoods', icon: '', permissions: [1, 2, 5], status: '' }
    ]
  },
  { category: '商品企划', name: '商品定价', routeName: 'GoodsInvestigationTrace', icon: '商品定价', permissions: [3, 4], status: '',
    children: [
      { name: '市调跟踪', routeName: 'GoodsInvestigationTrace', icon: '', permissions: [3, 4], status: '' }
    ]
  },
  { category: '商品企划', name: '商品陈列', routeName: 'GoodsDisplay', icon: '陈列', permissions: [], status: '' },
  // { category: '商品企划', name: '营销活动', routeName: '', icon: '营销活动', permissions: [], status: 'todo' },
  // { category: '商品企划', name: '商品促销', routeName: '', icon: '营销活动', permissions: [], status: 'todo' },
  // { category: '供应采购', name: '供应商管理', routeName: '', icon: '供应商管理', permissions: [], status: 'todo' },
  { category: '供应采购', name: '风险管理', routeName: 'ProfitTracking', icon: '风险管理', permissions: [3, 4], status: '',
    children: [
      { name: '毛利跟踪', routeName: 'ProfitTracking', icon: '', permissions: [3, 4], status: '' }
    ]
  },
  { category: '供应采购', name: '采购下单', routeName: 'SupplyManage', icon: '采购下单', permissions: [3, 4, 8], status: '',
    children: [
      { name: '采购下单', routeName: 'SupplyManage', icon: '', permissions: [3, 4], status: '' },
      { name: '订单管理', routeName: 'PurchaseOrderManage', icon: '', permissions: [8], status: '' }
    ] },
  // { category: '仓储物流', name: '仓库收货', routeName: '', icon: '收货', permissions: [], status: 'todo' },
  // { category: '仓储物流', name: '存储作业', routeName: '', icon: '存储', permissions: [], status: 'todo' },
  { category: '仓储物流', name: '仓库发货', routeName: 'StoreTable', icon: '发货', permissions: [], status: '' }, //
  { category: '门店运营', name: '门店收货', routeName: 'StoreTable', icon: '收货', permissions: [], status: '' } //
  // { category: '门店运营', name: '门店陈列', routeName: '', icon: '陈列', permissions: [], status: 'todo' },
  // { category: '门店运营', name: '门店反馈', routeName: '', icon: '门店服务', permissions: [], status: 'todo' },
  // { category: '门店运营', name: '门店服务', routeName: '', icon: '门店服务', permissions: [], status: 'todo' }
]

/**
 * 所有模块菜单
 *  0-领导
 *  1-品类部长
 *  2-品类课组负责人
 *  3-采购部长
 *  4-采购课组负责人
 *  5-品类经理
 *  6-门店配送
 *  8-采购经理
 */
export const MENUS_H5 = [
  // { category: '商品企划', name: '单店企划', routeName: 'SingleStorePlan', icon: '/images/apps/单店企划.png', permissions: [1, 2, 5], status: '' },
  // { category: '商品企划', name: '企划定量', routeName: 'CategoryPlan', icon: '/images/apps/品类企划.png', permissions: [1, 2, 5], status: '' },
  // { category: '商品企划', name: '商品档案', routeName: 'GoodsManage', icon: '/images/apps-pc/商品管理.png', permissions: [1, 2, 4, 5], status: '' },
  { category: '商品企划', name: '单品跟踪', routeName: 'SingleTracking', icon: '/images/apps-pc/销售目标.png', permissions: [1, 2, 4, 5], status: '' },
  { category: '商品企划', name: '销售Top20', routeName: 'GoodsRealtimeSales', icon: '/images/apps-pc/商品定价.png', permissions: [1, 2, 4, 5], status: '' },
  { category: '商品企划', name: '商品市调', routeName: 'GoodsInvestigation', icon: '/images/apps-pc/风险管理.png', permissions: [1, 2, 5], status: '' },
  // { category: '商品企划', name: '商品定价', routeName: 'GoodsInvestigationTrace', icon: '/images/apps-pc/商品定价.png', permissions: [3, 4], status: 'todo' },
  // { category: '商品企划', name: '商品陈列', routeName: 'GoodsDisplay', icon: '/images/apps-pc/陈列.png', permissions: [], status: 'todo' },
  // { category: '商品企划', name: '营销活动', routeName: '', icon: '/images/apps-pc/营销活动.png', permissions: [], status: 'todo' },
  // { category: '商品企划', name: '商品促销', routeName: '', icon: '/images/apps-pc/营销活动.png', permissions: [], status: 'todo' },

  // { category: '供应采购', name: '供应企划', routeName: 'OrderPlan', icon: '/images/apps/供应链企划.png', permissions: [3, 4], status: '' },
  // { category: '供应采购', name: '毛利跟踪', routeName: 'ProfitTracking', icon: '/images/apps-pc/风险管理.png', permissions: [3, 4], status: 'todo' },
  // { category: '供应采购', name: '供应商跟踪', routeName: '', icon: '/images/apps-pc/供应商管理.png', permissions: [], status: 'todo' },
  // { category: '供应采购', name: '采购下单', routeName: 'SupplyManage', icon: '/images/apps-pc/采购下单.png', permissions: [4, 8], status: 'todo' },

  // { category: '仓储物流', name: '物流管理', routeName: 'LogisticsManage', icon: '/images/apps-pc/发货.png', permissions: [1, 2, 5], status: '' },
  // { category: '仓储物流', name: '仓库收货', routeName: '', icon: '/images/apps-pc/收货.png', permissions: [], status: 'todo' },
  // { category: '仓储物流', name: '商品库存', routeName: '', icon: '/images/apps-pc/存储.png', permissions: [], status: 'todo' },
  // { category: '仓储物流', name: '仓库发货', routeName: '', icon: '/images/apps-pc/发货.png', permissions: [], status: 'todo' },

  { category: '门店运营', name: '门店收货', routeName: 'StoreDelivery', icon: '/images/apps/门店配送.png', permissions: [6], status: '' }
  // { category: '门店运营', name: '门店陈列', routeName: '', icon: '/images/apps-pc/陈列.png', permissions: [], status: 'todo' },
  // { category: '门店运营', name: '门店反馈', routeName: '', icon: '/images/apps-pc/门店服务.png', permissions: [], status: 'todo' },
  // { category: '门店运营', name: '巡店', routeName: '', icon: '/images/apps-pc/门店服务.png', permissions: [], status: 'todo' }

  // { category: '销售结构', name: '战略定位', routeName: '', icon: '/images/apps-pc/战略定位.png', permissions: [], status: 'todo' },
  // { category: '销售结构', name: '商品结构', routeName: 'GoodsStructureDesign', icon: '/images/apps-pc/商品结构.png', permissions: [1], status: 'todo' },
  // { category: '销售结构', name: '销售目标', routeName: '', icon: '/images/apps-pc/销售目标.png', permissions: [], status: 'todo' }
]
